package strategy;

import java.math.BigDecimal;
import java.util.Comparator;

/**
 * 房间价格排序策略
 */
public class HomePriceSortStrategy implements Comparator<Home> {
    @Override
    public int compare(Home o1, Home o2) {
        return o1.getPrice().compareTo(o2.getPrice());
    }
}
